/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.campusinfopay.entity;

import org.hibernate.validator.constraints.Length;
import com.lczyfz.campusinfo.modules.sys.entity.User;
import javax.validation.constraints.NotNull;

import com.lczyfz.campusinfo.common.persistence.DataEntity;

/**
 * 订单交易号Entity
 * @author zms
 * @version 2018-05-28
 */
public class CampusinfoPay extends DataEntity<CampusinfoPay> {
	
	private static final long serialVersionUID = 1L;
	private String Id;
	private String stat;		// 订单状态
	private String paytype;		// 付款类型
	private String amount;		// 订单金额
	private User user;		// 用户ID
	private String goodsId;		// 商品id
	private String goodsNum;		// 商品数量
	private String goodsName;		// 商品名称
	private int count;		// 次数
	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}



	@Override
	public String getId() {
		return Id;
	}

	@Override
	public void setId(String id) {
		Id = id;
	}
	public CampusinfoPay() {
		super();
	}

	public CampusinfoPay(String id){
		super(id);
	}

	@Length(min=1, max=64, message="订单状态长度必须介于 1 和 64 之间")
	public String getStat() {
		return stat;
	}

	public void setStat(String stat) {
		this.stat = stat;
	}
	
	@Length(min=1, max=64, message="付款类型长度必须介于 1 和 64 之间")
	public String getPaytype() {
		return paytype;
	}

	public void setPaytype(String paytype) {
		this.paytype = paytype;
	}
	
	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}
	
	@NotNull(message="用户ID不能为空")
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=1, max=64, message="商品id长度必须介于 1 和 64 之间")
	public String getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}
	
	@Length(min=1, max=1, message="商品数量长度必须介于 1 和 1 之间")
	public String getGoodsNum() {
		return goodsNum;
	}

	public void setGoodsNum(String goodsNum) {
		this.goodsNum = goodsNum;
	}
	
	@Length(min=1, max=64, message="商品名称长度必须介于 1 和 64 之间")
	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}
	

	
}